package com.njtoyo.taxi.admin.rest.presenter.business.operation_rule;


import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

@Data
@Accessors(chain = true)
public class RideCancelRulePresenter {

    private Long id;

    private Long driverRegionId;

    private String driverRegion;

    private RealtimeRule realtime;

    private AppointmentRule appointment;


    @Data
    @Accessors(chain = true)
    public static class AppointmentRule {
        private DriverUnreached driverUnreached;

        private DriverReached driverReached;

        private Integer freeMin;

        @Data
        @Accessors(chain = true)
        public static class DriverUnreached {
            private Integer freeMin;
            private Integer cancelTime;
            private BigDecimal amount;
        }
        @Data
        @Accessors(chain = true)
        public static class DriverReached {
            private Integer ladderOneMin;
            private BigDecimal ladderOneAmount;
            private Integer ladderTwoMin;
            private BigDecimal ladderTwoAmount;
        }





    }


    @Data
    @Accessors(chain = true)
    public static class RealtimeRule {

        /**
         * 叫单后 几分钟内免费
         */
        private Integer cancelMinute;


        private Integer cancelDailyTime;

        private Integer cancelFreeStart;


        private Integer cancelFreeEnd;

        //************阶梯规则***********

        private Integer ladderOneMin;

        private BigDecimal ladderOneAmount;

        private Integer ladderTwoMin;

        private BigDecimal ladderTwoAmount;

        private Integer ladderThreeMin;
        private BigDecimal ladderThreeAmount;


        private Integer ladderFourMin;
        private BigDecimal ladderFourAmount;

    }


}
